c = Thread.new { Thread.stop; puts "hey!" }
sleep 0.1 while c.status!='sleep'
c.wakeup
c.join

t = Thread.new do
	puts "[Starting thread]"
	Thread.stop
	puts "[Resuming thread]"
end
sleep 0.1 while t.status!='sleep'
puts "Status of thread: #{t.status}"
puts "Is thread stopped? #{t.stop?}"
puts "Is thread alive? #{t.alive?}"
puts 
puts "Walking up thread and joining it..."

t.wakeup
t.join
puts 
puts "Is thread alive? #{t.alive?}"
puts "Inspect string for thread: #{t.inspect}"
